document.querySelector(".dx").onclick = function () {
    document.querySelector("ul").style.display = "block";
}
function render(data) {
    var str = ''
    
    str = data.map((item, index) => {
        return `<ul>
        <li>${item.phone}</li>
        <li>${item.name}</li>
        <li>董事长</li>
        <li>1</li>
        <li class="${item.status?'':'error'}">${item.status?'正常':'异常'}</li>
        <li>2022-10-19 20:56:47</li>

        <li> <span class="iconfont icon-shanchu"> 导出</span></li>
      
     
    </ul>`
    
    }).join('')
    if( str == '' ){
        str = '<ul style="text-align:center;color:red">未查询到数据!</ul>'
    }
    document.querySelector('.table .table-body').innerHTML 
    = str ;
}


axios.get('/user/list', { params: { page:1,count:2 } ,headers:{} } ).then((res)=>{
  
    render( res.data.list );
    console.log(res.data);
})
